//
//  BWSecurities.h
//  ShortVideo
//
//  Created by Houge on 2021/5/28.
//

#import <Foundation/Foundation.h>
#import <CommonCrypto/CommonCrypto.h>
#import <CommonCrypto/CommonDigest.h>

NS_ASSUME_NONNULL_BEGIN

@interface BWSecurities : NSObject

/// MD5加密
+ (NSString *)md5EncryptWithString:(NSString *)string;

/// base64编码
+ (NSString *)base64EncodeString:(NSString *)string;
/// base64解码
+ (NSString *)base64DecodeString:(NSString *)string;

/// AES加密
+ (NSString *)aesEncrypt:(NSString *)sourceStr;
/// AES解密
+ (NSString *)aesDecrypt:(NSString *)secretStr;


+ (NSString *)hmac256:(NSString *)plaintext withKey:(NSString *)key;

@end

NS_ASSUME_NONNULL_END
